import request from '@/utils/request'

 //API常量
 const APIS = {
  V1: "/v1"
}

export function listChannel(data) {
  return request({
    url: APIS.V1+`/system/channel/list`,
    method: 'post',
    data
  })
}

export function chooseChannel() {
  return request({
    url: APIS.V1+`/system/channel/choose`,
    method: 'get',
  })
}

export function createOrUpdateChannel(data) {
  return request({
    url: APIS.V1+`/system/channel/saveOrUpdate`,
    method: 'post',
    data
  })
}

export function detailChannel(param) {
  return request({
    url: APIS.V1+`/system/channel/detail`,
    method: 'get',
    params: param
  })
}

export function deleteChannel(param) {
  return request({
    url: APIS.V1+`/system/channel`,
    method: 'delete',
    params: param
  })
}

